package com.chance.cc.crawler.prod.command.script.news.foodmate;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.script.ScriptCommand;
import com.chance.cc.crawler.prod.command.meta.foodmate.FoodMateRealtimeCrawlerScheduleJob;

public class FoodMateArticleCrawlerScript {
    private static ScriptCommand scriptCommand = new ScriptCommand("192.168.1.217",9599);//mysql服务器地址

    public static void main(String[] args) {

        publishFootMateArticleCrawlerNodeScript();
    }

    private static void publishFootMateArticleCrawlerNodeScript() {
        HttpPage httpPage = scriptCommand.publishCrawlerScript2Consul(FoodMateRealtimeCrawlerScheduleJob.domain);
        System.out.println("发布采集脚本：" + httpPage.getRawText());
    }
}
